<html {$html_attrs}>
<head>
<title>Relatório Percentual Trimestre</title>
{BEGIN stylesheetlink}
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{END stylesheetlink}
<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border: solid black 1px;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid #cccccc 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
.pagesummary
{
background-color:#ffffbb;
}
.globalsummary
{
background-color:#ffe0b0;
}

{$cssdata}

.group_1
{
background-color: #FFFFE0;
}
.group_2
{
background-color: #FFFFE0;
}
.group_3
{
background-color: #FFFFE0;
}


.nbgroup_1
{
background-color: #FFFFE0;
border-style:none;
}
.nbgroup_2
{
background-color: #FFFFE0;
border-style:none;
}
.nbgroup_3
{
background-color: #FFFFE0;
border-style:none;
}


.header_1
{
background-color: #D8D8BE;
}
.header_2
{
background-color: #D8D8BE;
}
.header_3
{
background-color: #D8D8BE;
}

</style> 
</head>
<body topmargin=5 style="background:white">
{BEGIN body}{BEGIN page}
<div>

<h1>Relatório Percentual Trimestre</h1>
<div id='selpage'>Página {$pageno} de {$maxpages} </div>

{BEGIN grid_block}
<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_row}
<!-------------------------------------  group headers ----------------------------------------->
{BEGIN id_macroprocessos_newgroup}
<tr>
<td class=header_1 colspan=8>
Macroprocessos:&nbsp;
<font style="font-weight:900">{$id_macroprocessos_grval}</font></td>
</tr>
{END id_macroprocessos_newgroup}
{BEGIN id_unidades_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=header_2 colspan=7>
Unidade Organizacional:&nbsp;
<font style="font-weight:900">{$id_unidades_grval}</font></td>
</tr>
{END id_unidades_newgroup}
{BEGIN id_indicador_estrategico_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=header_3 colspan=6>
Indicador Estratégico:&nbsp;
<font style="font-weight:900">{$id_indicador_estrategico_grval}</font></td>
</tr>
<tr>
<td class=group_1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=group_2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=group_3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=blackshade><b>Periodo</b></td>
<td class=blackshade><b>Meta</b></td>
<td class=blackshade><b>Numerador</b></td>
<td class=blackshade><b>Denominador</b></td>
<td class=blackshade><b>Realizado</b></td>
</tr>
{END id_indicador_estrategico_newgroup}
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2>&nbsp;</td>
			<td class=group_3>&nbsp;</td>
	<td class=data>{$grupoperiodo_value}</td>
	<td class=data>{$meta_value}</td>
	<td class=data>{$numerador_value}</td>
	<td class=data>{$denominador_value}</td>
	<td class=data>{$realizado_value}</td>
</tr>
{END row_data}
<!-------------------------------------  group summary ----------------------------------------->
{BEGIN id_indicador_estrategico_endgroup}
<tr>
	<td class=group_1>&nbsp;</td>
	<td class=group_2>&nbsp;</td>
	<td 1 class=group_3
		colspan=6 >
	Resumo para Indicador Estratégico {$id_indicador_estrategico_grval}
	 - {$groupid_indicador_estrategico_total_cnt} Total de registros</div></td>
</tr>
<!--  Sum -->
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2>&nbsp;</td>
			<td class=group_3
		>Soma</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>{$groupid_indicador_estrategico_totalnumerador_sum}</td>
			<td class=group_3
		>{$groupid_indicador_estrategico_totaldenominador_sum}</td>
			<td class=group_3
		>{$groupid_indicador_estrategico_totalrealizado_sum}</td>
</tr>	
{END id_indicador_estrategico_endgroup}
{END grid_row}
</table>
{END grid_block}
</div>
{END page}{END body}
</body>
</html>